﻿using Microsoft.EntityFrameworkCore;
using MysqlTest.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MysqlTest.Data
{
    public class DomainContext : DbContext
    {
        public DomainContext(DbContextOptions options)
            : base(options)
        {

        }

        public DbSet<Order> Orders { get; set; }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            #region 注册领域模型与数据库的映射关系
           
            #endregion
            base.OnModelCreating(modelBuilder);
        }
    }
}
